<template>
  <div
    class="biglist"
    @click="item.audition == 1 ? navtoke(item) : ''"
  >
    <div class="title">{{item.title}}</div>
    <div class="time1">
      <div>{{item.create_time}}</div>
      <div class="try">
        <div v-if="item.audition == 1">试学</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['item', 'index'],
  methods: {
    navtoke (item) {
      this.$emit('listcallback', item, this.index)
    }
  }
}
</script>

<style lang="less" scoped>
.biglist {
  width: 100%;
  padding: 5px 5%;
  box-sizing: border-box;
  // border-bottom: 1px solid #e6e6e6;
  .title{
    font-size: 14px;
    margin: 10px 0 10px 0;
  }
  .time1 {
    display: flex;
    align-items: center;
    div:first-of-type {
      display: flex;
      font-size: 12px;
      color: #cccccc;
      flex: 1;
    }
    .try {
      position: relative;
      div {
        padding: 4px 10px;
        border: solid 1px #ff3e3e;
        font-size: 12px;
        color: #ff3e3e;
        border-radius: 4px;
        right: 0;
      }
    }
  }
}
</style>
